﻿using AMAP.Domain;
using AMAP.ServiceInterfaces.Common;
using System.Collections.Generic;

namespace AMAP.ServiceInterfaces
{
    public interface ISubscriptionService : IRepositoryService<Subscription>
    {
        /// <summary>
        /// Returns the last subscription of the given client designed by ClientId
        /// </summary>
        /// <param name="ClientId">Client's Id</param>
        /// <returns>Last subscription of the Client</returns>
        Subscription GetLast(int ClientId);

        /// <summary>
        /// Computes and returns the list of all valid Subscription for the current week
        /// </summary>
        /// <returns>List of valid subscription for this week</returns>
        /// <remarks>This function is based on DateTime.Now</remarks>
        IList<Subscription> GetCurrentWeekList();
    }
}
